import { post } from '@/api/http'

// 列表查询
export const getList = (data) => post({ url: '/workOrderV5/getPageList', data })

// 数据统计
export const getStatistics = (data) => post({ url: '/workOrderV5/getStatistics', data })

// 指派负责人
export const assignDutyPeople = (data) => post({ url: '/workOrderV5/assignDutyPeople', data })

// 接受工单
export const acceptWork = (data) => post({ url: '/workOrderV5/acceptWork', data })

// 拒绝工单
export const refuseWork = (data) => post({ url: '/workOrderV5/refuseWork', data })

// 申请改派
export const applyForReassignment = (data) => post({ url: '/workOrderV5/applyForReassignment', data })

// 审核改派
export const examineReassignment = (data) => post({ url: '/workOrderV5/examineReassignment', data })

// 去处理（交车/还车/换车）
export const goHandle = (data) => post({ url: '/workOrderV5/goHandle', data })

// 车辆入库
export const carInStorage = (data) => post({ url: '/workOrderV5/carInStorage', data })

// 关闭工单
export const closeWork = (data) => post({ url: '/workOrderV5/closeWork', data })

// 修改车辆入库信息
export const updateCarInStorage = (data) => post({ url: '/workOrderV5/updateCarInStorage', data })

// 创建换车单
export const createReplaceCarWork = (data) => post({ url: '/workOrderV5/createReplaceCarWork', data })

// 导出工单
export const exportWorkOrder = (data) => post({ url: '/workOrderV5/export', data })

// 工单详情
export const getDetails = (data) => post({ url: '/workOrderV5/detail', data })

// 完成交车
export const finishGiveCar = (data) => post({ url: '/workOrderV5/finishGiveCar', data })

// 完成取车
export const finishReturnCar = (data) => post({ url: '/workOrderV5/finishReturnCar', data })

// 完成换车
export const finishReplaceCar = (data) => post({ url: '/workOrderV5/finishReplaceCar', data })

// 获取关联订单详情
export const getOrderDetail = (data) => post({ url: '/workOrderV5/getOrderDetail', data })

// 获取关联订单-费用信息
export const getOrderFee = (data) => post({ url: '/workOrderV5/getOrderFee', data })

// 获取关联订单-换车信息
export const getOrderReplaceList = (data) => post({ url: '/workOrderV5/getOrderReplaceList', data })

// 获取换车关联订单号
export const getReplaceOrderNo = (data) => post({ url: '/workOrderV5/getReplaceOrderNo', data })

// 短租订单-计算订单相关的金额
export const shortOrdrCalcPrice = (data) => post({ url: '/sOrder/calcPrice', data })

// 长租订单-计算订单相关的金额
export const longOrderCalcPrice = (data) => post({ url: '/czsOrderInfo/calcPrice', data })

// 短租添加费用
export const addShortOrderCost = (data) => post({ url: '/sOrder/addOrderCost', data })

// 长租添加费用
export const addLongOrderCost = (data) => post({ url: '/czsOrderInfo/addOrderCost', data })

// 获取车管家详情
export const getCarHousekeepDetail = (data) => post({ url: '/carHousekeep/detail', data })

// 保存/修改车管家
export const updateCarHousekeep = (data) => post({ url: '/carHousekeep/save', data })

// 获取门店权限下的员工
export const getStaffList = (data) => post({ url: '/driverScheduling/selectStaffByOrgId', data })

// 根据员工和机构ID获取车管家信息
export const getSiteCarHouseKeepByOrgId = (data) => post({ url: '/carHousekeep/getSiteCarHouseKeepByOrgId', data })
